widget: Stop using gdk_device_get_position
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 11:43:29 +0000 (07:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 18:04:08 +0000 (18:04 +0000)
Root coordinates are going away. Stop
setting them in crossing events, so we
can drop this api.

gtk/gtkwidget.c

index ba904923828a4878562678fabe19ce90750f1281..22bbf1886cefd83f8c2c320ac64ec127ac862b1e 100644 (file)
@@ -8315,9 +8315,8 @@ synth_crossing (GtkWidget       *widget,
   event->any.send_event = TRUE;
   event->crossing.child_surface = g_object_ref (surface);
   event->crossing.time = GDK_CURRENT_TIME;
-  gdk_device_get_position (device,
-                           &event->crossing.x_root,
-                           &event->crossing.y_root);
+  event->crossing.x_root = 0;
+  event->crossing.y_root = 0;
   gdk_surface_get_device_position (surface,
                                    device,
                                    &event->crossing.x,